<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?=$title_table?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?=$this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_detail" => $detail[0]->id_asset_in))?>
								<fieldset>
									<div class="control-group">
										<label class="control-label">Name</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input("name", $detail[0]->name, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Code</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input("kode", $detail[0]->kode, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Tanggal</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_date("tanggal", $detail[0]->tanggal, 'tanggal', "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Gudang</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_autocomplate("asset_gudang", "id_asset_gudang", "asset_gudang", "id_asset_gudang", site_url("asset/auto-gudang"), $this->global_models->get_field("m_asset_gudang", "name", array("id_asset_gudang" => $detail[0]->id_asset_gudang)), $detail[0]->id_asset_gudang, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Supplier</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_autocomplate("supplier", "id_supplier", "supplier", "id_supplier", site_url("asset/auto-supplier"), $this->global_models->get_field("m_supplier", "title", array("id_supplier" => $detail[0]->id_supplier)), $detail[0]->id_supplier, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Note</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_textarea('note', $detail[0]->note, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<?=$this->form_eksternal->form_addrow_tr(
                            array("Asset", "Qty"),
                            $isi, site_url("asset/add-row-asset-in"), "items", "id_items", "nomor_flag", $tr, "width='100%'", true, true, false)?>
                    <?=$this->form_eksternal->form_input('param', count($isi), 'id="nomor_flag" style="display: none;"')?>
									</div>
								</fieldset>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<button class="btn" onclick="history.go(-1);return false;">Cancel</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</div>
<script>
  function del_row_lokal(tr){
    $("#"+tr).remove();
  }
</script>